package com.qf.ts.platform.front.service.impl;

import com.qf.ts.platform.front.domain.Form;
import com.qf.ts.platform.front.mapper.FormMapper;
import com.qf.ts.platform.front.service.FormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FormServiceImpl implements FormService {

    @Autowired
    private FormMapper formMapper;

    @Override
    public Integer addForm(String uid, Form form) {

        formMapper.insertForm(form);

        int result = formMapper.insertUserForm(uid,form.getId());

        return result;
    }


}
